package com.hashnode.springboot_0004_mybatis.service;


import com.hashnode.springboot_0004_mybatis.mapper.StudentMapper;
import com.hashnode.springboot_0004_mybatis.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class StudentService {
    @Autowired
    StudentMapper studentMapper;

    public int insertTest(Student record){
        System.out.println(studentMapper.selectById(1));
        return studentMapper.insert(record);
    }
}
